package org.wotou.authority.utils;

/**
 * 全局常数设置
 *
 * @author zhangQ
 * @date 2017/11/22
 */
public class Constant {
    /*************数据状态*************/
    public static final String STATE_DISABLE = "0"; // 关闭
    public static final String STATE_ENABLE = "1"; // 启用
    public static final String STATE_ABANDON = "99"; // 作废

    //可用
    public static final Integer ENABLED = 1;
    //不可用
    public static final Integer DISABLED = 0;

    // 用户session id
    public static final String ACCESS_TOKEN = "ACCESS_TOKEN";

    public static final String COURSE_SESSION_ID = "COURSE_SESSION_ID";
    public static final String COURSE_NAME_SESSION_ID = "COURSE_NAME_SESSION_ID";
    public static final String QUESTION_SESSION_ID = "QUESTION_SESSION_ID";
    public static final String QUESTION_RESULT_SESSION_ID = "QUESTION_RESULT_SESSION_ID";

    //操作结果 正确
    public static final Integer RESULTIF_RIGHT = 1;
    //操作结果 错误
    public static final Integer RESULTIF_WRONG = 0;

    //是否锁定 正常
    public static final Integer ISLOCK_NO = 0;
    //是否锁定 锁定
    public static final Integer ISLOCK_YES = 1;

    //是否支付 是
    public static final Integer ISPAY_YES = 1;
    //是否支付 否
    public static final Integer ISPAY_NO = 0;

    /*************视频类型*************/
    public static final int VIDEO_COMMON = 2; //普通视频
    public static final int VIDEO_VIP = 1; //VIP视频

    /*************文件类型*************/
    public static final int FILE_COMMON = 2; //普通文件
    public static final int FILE_VIP = 1; //VIP文件

    /*************数据发布状态*************/
    public static final int DATA_STATE_NEW = 0; //新建
    public static final int DATA_STATE_RELEASE = 1; //发布
    public static final int DATA_STATE_UNDO = 2; //撤销

    /*************虚拟根目录*************/
    public static final String VIRTUAL_ROOT_DIR = "/virtual"; //撤销
}
